package com.lq.pojo;

import java.sql.Timestamp;

public class Comment {

    private int commentId;
    private String commentContent;
    private Timestamp commentInsertTime;
    private int comment_user_id;
    private int comment_article_id;
    private int comment_article_user_id;

    private Article article;
    private User user;

    public Article getArticle() {
        return article;
    }

    public void setArticle(Article article) {
        this.article = article;
    }

    public Comment() {
    }

    public Comment(int commentId, String commentContent, Timestamp commentInsertTime, int comment_user_id, int comment_article_id, int comment_article_user_id, User user) {
        this.commentId = commentId;
        this.commentContent = commentContent;
        this.commentInsertTime = commentInsertTime;
        this.comment_user_id = comment_user_id;
        this.comment_article_id = comment_article_id;
        this.comment_article_user_id = comment_article_user_id;
        this.user = user;
    }

    public User getUser() {
        return user;
    }

    public Comment(int commentId, String commentContent, Timestamp commentInertTime, int comment_user_id, int comment_article_id, int comment_article_user_id) {
        this.commentId = commentId;
        this.commentContent = commentContent;
        this.commentInsertTime = commentInertTime;
        this.comment_user_id = comment_user_id;
        this.comment_article_id = comment_article_id;
        this.comment_article_user_id = comment_article_user_id;
    }


    public Comment(int commentId, String commentContent, Timestamp commentInsertTime, Article article, User user) {
        this.commentId = commentId;
        this.commentContent = commentContent;
        this.commentInsertTime = commentInsertTime;
        this.article = article;
        this.user = user;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "commentId=" + commentId +
                ", commentContent='" + commentContent + '\'' +
                ", commentInertTime=" + commentInsertTime +
                ", comment_user_id=" + comment_user_id +
                ", comment_article_id=" + comment_article_id +
                ", comment_article_user_id=" + comment_article_user_id +
                '}';
    }

    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public Timestamp getCommentInsertTime() {
        return commentInsertTime;
    }

    public void setCommentInsertTime(Timestamp commentInsertTime) {
        this.commentInsertTime = commentInsertTime;
    }

    public int getComment_user_id() {
        return comment_user_id;
    }

    public void setComment_user_id(int comment_user_id) {
        this.comment_user_id = comment_user_id;
    }

    public int getComment_article_id() {
        return comment_article_id;
    }

    public void setComment_article_id(int comment_article_id) {
        this.comment_article_id = comment_article_id;
    }

    public int getComment_article_user_id() {
        return comment_article_user_id;
    }

    public void setComment_article_user_id(int comment_article_user_id) {
        this.comment_article_user_id = comment_article_user_id;
    }
}
